<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<HEAD>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>绩效考核  <{$smarty.const.WEB_NAME}></title>
	<link rel="stylesheet" type="text/css" href="./skin/default/style.css" />
	<script type="text/javascript" src="./skin/default/comm.js"></script> 
	<script type="text/javascript" src="./skin/default/calendar.js"></script>
</HEAD>

<BODY>
	<div style="font-size:13px;" class="headerTip"> 
	<ul>
		<li><a href="?q=kpiManage/skillKpi">技能等级考核</a></li>
		<{if $smarty.session.type == 1}>
		<li><a href="?q=kpiManage/skillTempl">技能等级模板</a></li>
		<{/if}>
		<li><a href="?q=kpiManage/skillTemplView">技能等级考核标准对照表</a></li>
	</ul>
	</div>
	
	<form method="post" id="queryId" action="?q=kpiManage/">
	<table width="100%" border="1" cellspacing="0" bordercolor="#cfcfcd" cellpadding="0" class="tableList tip_bug">
		<tr>
		  <td width="15%" align="center">考核类别:
		  	<select name="type">
		  		<option value="1" <{if $type==1}>selected<{/if}>>开发</option>
		  		<option value="2" <{if $type==2}>selected<{/if}>>测试</option>
		  		<option value="3" <{if $type==3}>selected<{/if}>>集成</option>
		  	</select>
		  </td>
		  <td width="15%" align="center">考核级别:
			<select name="level" id="levelId">
		  		<option value="1" <{if $level==1}>selected<{/if}>>1级</option>
		  		<option value="2" <{if $level==2}>selected<{/if}>>2级</option>
		  		<option value="3" <{if $level==3}>selected<{/if}>>3级</option>
		  		<option value="4" <{if $level==4}>selected<{/if}>>4级</option>
		  		<option value="5" <{if $level==5}>selected<{/if}>>5级</option>
		  	</select>
		  </td>
		  <td width="25%" align="center"> 
			<input type="submit" value="上一级" class="sub_btn" onclick="javascript:OnBack()"/>
			<input type="submit" value="下一级" class="sub_btn" onclick="javascript:OnNext()"/>
			<input type="submit" value="指定查询" class="sub_btn" onclick="javascript:OnQuery()"/>
		  </td>
		  <td width="45%"></td>
		</tr>
	</table>
	
	<table border="1" width="100%"  cellspacing="0" cellpadding="0" bordercolor="#cfcfcd" class="tableList tip_bug">
		<tr>
			<th width="5%">考核类别</th>
			<th width="5%">考核级别</th>
			<th width="5%">考核编号</th>
			<th width="10%">考核标题</th>
			<th>考核内容</th>
		</tr>
		<{section name=i loop=$list}>
		<tr>
			<td align="center"><{$type}></td>
			<td align="center"><{$level}></td>
			<td align="center"><{$list[i].index}></td>
			<td align="center"><{$list[i].caption}></td>
			<td><{$list[i].content}></td>
		</tr>
		<{/section}>
	</table>
	</form>

	<script type="text/javascript">
		<!--
		// 上一级
		function OnBack() {
			var level = $('levelId').value;
			level = parseInt(level);
			if( level > 1 ) {
				$('levelId').value = level - 1;
			}
			
			$('queryId').action += "skillTemplView";
		}
		
		// 下一级
		function OnNext() {
			var level = $('levelId').value;
			level = parseInt(level);
			if( level < 5 ) {
				$('levelId').value = level + 1;
			}
			
			$('queryId').action += "skillTemplView";
		}
		
		// 指定查询
		function OnQuery() {
			$('queryId').action += "skillTemplView";
		}
		//-->
	</script>
</BODY>
</HTML>